package com.djl.sqtg.service.impl;

import com.djl.sqtg.entity.Carousel;
import com.djl.sqtg.mapper.CarouselMapper;
import com.djl.sqtg.service.ICarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarouselServiceImpl implements ICarouselService {
    @Autowired
    private CarouselMapper carouselMapper;

    @Override
    public List<Carousel> getAllCarouselImg(){
        return carouselMapper.getAllCarouselImg();
    }

    @Override
    public Integer updateCarouselImg(Carousel carousel) {
        return carouselMapper.updateCarouselImg(carousel);
    }

}
